<template>
  <div>
    <h3>{{title}}</h3>
    <p>{{message}}</p>
  </div>
</template>

<script>
export default {
  name: "KNotice",

  mounted() {
    setTimeout(() => {
      this.remove()
    }, this.duration)
  },

  props: {
    title: {
      type: String
    },
    message: {
      type: String
    },
    duration: {
      type: Number
    }
  },
}
</script>

<style scoped>
  div {
    background-color: aquamarine;
  }
</style>